function [ string ] = time2str( cT )
%TIME2STR Summary of this function goes here
%   Detailed explanation goes here

string='';

if(mod(cT,60)) %#ok<MFAMB>
	string=[string,sprintf('   %.2f s\n',mod(cT,60))];
	cT=cT-mod(cT,60);
end
cT=cT/60; % Convert to minutes

if(mod(cT,60))
	string=[string,sprintf('   %.0f min\n',mod(cT,60))];
	cT=cT-mod(cT,60);
end
cT=cT/60; % Convert to hours

if(mod(cT,24))
	string=[string,sprintf('   %.0f hours\n',mod(cT,24))];
	cT=cT-mod(cT,24);
end
cT=cT/24; % Convert to days

if(mod(cT,365))
	string=[string,sprintf('   %.0f days\n',mod(cT,365))];
	cT=cT-mod(cT,365);
end
cT=cT/365;

if(cT)
	string=[string,sprintf('   %.0f years\n',mod(cT,1000))];
	cT=cT-mod(cT,1000);
end
cT=cT/1000;

if(cT)
	string=[string,sprintf('   %.0f Millenia\n',cT)];
end

end

